﻿@{
    var fileTypeDic = ViewData["FileTypeDic"] as Dictionary<string, string>;
    string fileType = ViewData["FileType"] as string;
}
<li id="fileTypeli">
    <span class="sp-title">文件类型：</span>
    <div class="choose">
        @foreach (var key in fileTypeDic.Keys)
        {
            <label class="radio-inline">
                <input type="radio" name="FileType" value="@key">@fileTypeDic[key]
            </label>
        }
    </div>
</li>
<script type="text/javascript">
    $(document).ready(function () {
        $("#fileTypeli").find("input[name='FileType'][value='@fileType']").prop("checked", true);
        $("#fileTypeli").find("input[name='FileType']").click(function () {
            @ViewData["JsFun"];
        });
    });
</script>